-- GENERATED SPELL FOR [Barbed Lasher] --


function spell0_12219(pUnit, Event) --@Thorn Volley,Self--
pUnit:FullCastSpellOnTarget(21749,pUnit)
pUnit:RegisterEvent('Sorts_12219', 2334, 1)
end

function Sorts_12219(pUnit, Event)
local choix_sorts_12219 = math.random(0, 0)
if choix_sorts_12219 == 0 then
pUnit:RegisterEvent('spell0_12219', 1, 1)
end
end

function mob12219_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12219', math.random(1500, 3000), 1)
end

function mob12219_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12219_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12219_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12219, 1, 'mob12219_Action')
RegisterUnitEvent(12219, 2, 'mob12219_Leave')
RegisterUnitEvent(12219, 3, 'mob12219_Kill')
RegisterUnitEvent(12219, 4, 'mob12219_Die')
